/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 *Truth: I Believe in Spring Brother~
 */
package electsys;

/**
 *
 * @author t
 * Created 2010-7-22  19:56:08
 * Last Modified 2010-7-22  19:56:08
 *
 */
public class ExamInfo {

    public String name = "";
    public String classroom = "";
    public String teacher = "";
    public String startTime = "";
    public String endTime = "";
    public String notes = "";

    public ExamInfo() {
    }

    public ExamInfo(String na, String cr, String te, String st, String et, String no) {
        this.name = na;
        this.classroom = cr;
        this.teacher = te;
        this.startTime = st;
        this.endTime = et;
        this.notes = no;
    }

    public String getMainInfo() {
        return (new String(this.name + " " + this.classroom + " " + this.startTime.substring(0, 16) + " " + this.endTime.substring(0, 16) + " " + this.teacher));
    }
}
